package org.example.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.Entity.Word;
import org.example.Dto.WordBookDTO;
import org.example.Vo.R;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface WordService extends IService<Word> {

    R search(String word) throws IOException;

    R speechAssessment(MultipartFile file, String text) throws Exception;

    R insertWordByWordBook(WordBookDTO wordBookDTO,Integer type);

    R getRandomWord();

    R getLearnDetail(String username);
}
